package com.cpj.bsyyzx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cpj.bsyyzx.entity.AccountRole;
import com.cpj.bsyyzx.mapper.AccountRoleMapper;
import com.cpj.bsyyzx.service.IAccountRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 五个臭皮匠
 * @since 2021-05-09
 */
@Service
public class AccountRoleServiceImpl extends ServiceImpl<AccountRoleMapper, AccountRole> implements IAccountRoleService {

    @Override
    public AccountRole getByAccId(Integer accId) {
        QueryWrapper wrapper=new QueryWrapper();
        wrapper.eq("acc_id",accId);
        return this.getOne(wrapper);
    }
}
